package com.spring.annotation;

import com.spring.beans.User;
import com.spring.beans.Work;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

/**
 * import 导入 组件
 */
@Configuration
@Import(Work.class)
public class ImportConfig {

    @Bean
    public User user(){
        User user = new User("za", 23);
        return user;
    }
}
